package com.example.applications.Kotlin


fun main() {
    var cat = animal
    var cat2 = animal
    cat.inf()
    cat.eat()
    println(cat === cat2)
}


object animal {
    var name: String = "小猫"
    var age: Int = 3
    var food: String = "鱼"
    fun inf() {
        println("名字是：${name}，年龄是：${age}")
    }

    fun eat() {
        println("${name}吃${food}")
    }
}
